package com.boliq.lol.adapter;


import com.boliq.lol.R;
import com.boliq.lol.bean.NewsArticleBean;
import com.boliq.lol.bean.NewsArticleBean1;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import org.jetbrains.annotations.NotNull;


public class NewsArticleAdapter1 extends BaseQuickAdapter<NewsArticleBean1, BaseViewHolder> {

    public NewsArticleAdapter1() {
        super(R.layout.item_news_article3);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, NewsArticleBean1 newsArticleBean1) {

        baseViewHolder.setText(R.id.tv_article_title,newsArticleBean1.getTitle());
        baseViewHolder.setImageResource(R.id.img_cover,newsArticleBean1.getImag());
        baseViewHolder.setText(R.id.tv_article_user,newsArticleBean1.getUser());

    }
}
